package com.anhry.www.safety.manage.enterprise.struts.base;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.anhry.www.safety.manage.enterprise.service.EnterpriseService;
import com.anhry.www.safety.util.Page;
import com.anhry.www.safety.util.action.UtilBaseAction;
import com.anhry.www.safety.util.service.UtilService;

/**
 * @date:Jun 19, 2012
 * @remark:分类分级模块基础action类
 * @author:dongbin
 */
@Controller
@SuppressWarnings("unchecked")
public class EnterpriseBaseAction extends UtilBaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Resource
	protected EnterpriseService enterprisService;

	protected Page page;

	protected String num;

	protected String size;

	protected String tip;

	protected String keyWord;

	protected String keyTemp;

	protected String search;

	protected String cCounty;

	protected String cUnit;

	protected String cDept;

	protected String cHy;

	protected String cMaxType;

	protected String cMinType;

	protected String cZcType;

	protected String result;

	protected List corpList;

	protected List sdList;

	protected List typeList;

	protected List hyList;

	protected List objList;

	protected String urls;// 条件连接

	protected String objId;

	protected int pageNo = 1;

	protected int rowCount = 0;

	protected int pageSize = 10;// 定义分页的每页显示的初始个数

	/**
	 * 设置从页面传过来的分页参数
	 */
	protected void setPagingParameters() {
		if (num != null && !"".equals(num)) {
			pageNo = Integer.parseInt(num);
		}
		if (size != null && !"".equals(size)) {
			pageSize = Integer.parseInt(size);
		}

		page = new Page(pageSize, pageNo, rowCount);
	}

	public EnterpriseService getEnterprisService() {
		return enterprisService;
	}

	public void setEnterprisService(EnterpriseService enterprisService) {
		this.enterprisService = enterprisService;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public String getKeyTemp() {
		return keyTemp;
	}

	public void setKeyTemp(String keyTemp) {
		this.keyTemp = keyTemp;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}

	public String getCCounty() {
		return cCounty;
	}

	public void setCCounty(String county) {
		cCounty = county;
	}

	public String getCUnit() {
		return cUnit;
	}

	public void setCUnit(String unit) {
		cUnit = unit;
	}

	public String getCDept() {
		return cDept;
	}

	public void setCDept(String dept) {
		cDept = dept;
	}

	public String getCHy() {
		return cHy;
	}

	public void setCHy(String hy) {
		cHy = hy;
	}

	public String getCMaxType() {
		return cMaxType;
	}

	public void setCMaxType(String maxType) {
		cMaxType = maxType;
	}

	public String getCMinType() {
		return cMinType;
	}

	public void setCMinType(String minType) {
		cMinType = minType;
	}

	public String getCZcType() {
		return cZcType;
	}

	public void setCZcType(String zcType) {
		cZcType = zcType;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public List getCorpList() {
		return corpList;
	}

	public void setCorpList(List corpList) {
		this.corpList = corpList;
	}

	public List getSdList() {
		return sdList;
	}

	public void setSdList(List sdList) {
		this.sdList = sdList;
	}

	public List getTypeList() {
		return typeList;
	}

	public void setTypeList(List typeList) {
		this.typeList = typeList;
	}

	public List getHyList() {
		return hyList;
	}

	public void setHyList(List hyList) {
		this.hyList = hyList;
	}

	public String getUrls() {
		return urls;
	}

	public void setUrls(String urls) {
		this.urls = urls;
	}

	public List getObjList() {
		return objList;
	}

	public void setObjList(List objList) {
		this.objList = objList;
	}

	public String getObjId() {
		return objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

}
